import Vue from 'vue'
import vdk from 'vdk'
import VueRouter from 'vue-router'
import conf from './../../../conf'

Vue.use(VueRouter)

const _defaults = {
  mode: 'hash',
  scrollBehavior: () => ({y: 0}),
  routes: [
    {
      path: '/',
      component: () => import ('@biz/chat.index/views/index')
    }
  ]
}

class Router {
  constructor(config = {}) {
    const router = new VueRouter(Object.assign({}, _defaults, conf._defaults, config));
    return router;
  }
}

export default Router
